package com.ouc.openplatform.zykt.reportManage.service.impl;

import java.util.List;

import com.ouc.openplatform.zykt.reportManage.dao.DD_ReportDao;
import com.ouc.openplatform.zykt.reportManage.model.DD_Report;
import com.ouc.openplatform.zykt.reportManage.service.DD_ReportService;

public class DD_ReportServiceImpl implements DD_ReportService{

	private DD_ReportDao reportDao;

	public DD_ReportDao getReportDao() {
		return reportDao;
	}

	public void setReportDao(DD_ReportDao reportDao) {
		this.reportDao = reportDao;
	}

	@Override
	public int saveReport(DD_Report report) {
		return reportDao.insert(report);
	}

	@Override
	public int deleteReport(int id) {
		return reportDao.deleteByPrimaryKey(id);
	}

	@Override
	public int updateReport(DD_Report report) {
		return reportDao.updateByPrimaryKeySelective(report);
	}

	@Override
	public List<DD_Report> getReports(DD_Report report) {
		return reportDao.select(report);
	}

	

}
